package com.eportal.params.background.TCommunitymsg;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 公告详情新增
 * Created by Saber on 2017/8/22.
 */
public class TCommunityMsgParam {

    /**
     * 范围 0:全部   1:指定
     */
    @NotBlank(message = "范围必选")
    private String range ;
    /**
     * 消息接收人id      用  | 分割 , 注意 * 表示本小区全部住户    当range !=0 时 本字段不能为空
     */
    private String receiverId ;
    /**
     * 消息内容
     */
    @NotBlank(message = "消息内容不能为空")
    private String cMsg ;
    /**
     * 摘要
     */
    private String abstractMsg ;

    public String getAbstractMsg() {
        return abstractMsg;
    }

    public void setAbstractMsg(String abstractMsg) {
        this.abstractMsg = abstractMsg;
    }

    public String getcMsg() {
        return cMsg;
    }

    public void setcMsg(String cMsg) {
        this.cMsg = cMsg;
    }

    public String getRange() {
        return range;
    }

    public void setRange(String range) {
        this.range = range;
    }

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("TCommunityMsgParam{");
        sb.append("abstractMsg='").append(abstractMsg).append('\'');
        sb.append(", range='").append(range).append('\'');
        sb.append(", receiverId='").append(receiverId).append('\'');
        sb.append(", cMsg='").append(cMsg).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
